#ifndef _DELETEREGIONACTION_
#define _DELETEREGIONACTION_

#include "BaseAction.hpp"
#include "../EditorRegionManager.hpp"
#include "../EditorRegion.hpp"
#include "../UI/RegionPanel.hpp"

/**
 * Delete a region.
 */
class DeleteRegionAction:public BaseAction{
private:
    EditorRegionManager* manager;
    RegionPanel* regionPanel;
    Region* region;

public:
    DeleteRegionAction(EditorRegionManager* regionManager, RegionPanel* panel, Region* r);

    virtual void perform();
    virtual void undo();
};

#endif